package com.example;

import com.example.service.StudentService;
import com.example.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        // 创建容器
        ApplicationContext context = new ClassPathXmlApplicationContext("Spring-config.xml");

        StudentService studentService = context.getBean(StudentService.class);
        studentService.insert();
    }
}
